package Month09.day0914;

public class Test2 {
    private int a;
    private float b;

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public float getB() {
        return b;
    }

    public void setB(float b) {
        this.b = b;
    }

    public Test2(int a, float b) {
        this.a = a;
        this.b = b;
    }

    @Override
    public String toString() {
        return "Test2{" +
                "a=" + a +
                ", b=" + b +
                '}';
    }

    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(a +" " + b);

        Test2 t1 = new Test2(1,2);
        System.out.println(t1);
    }
}
